package com.smarthome.core.housemanager;

import java.util.List;

import com.smarthome.domain.bean.ShBuilding;
import com.smarthome.domain.bean.ShResidence;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;

/**
 * 
 * @author dhc
 * @Date 2015-09-14
 *@title 楼栋单元管理
 */
public interface BuildingUnitManagerService {
	
	/**
	 * @param building
	 * @param helper
	 * @return 
	 */
	DataGrid getDataGrid(ShBuilding building,PageHelper helper);
	
	
	ShBuilding querybuildingById(Long id);
	/**
	 * 
	 * @param building
	 * @return
	 */
	int add(ShBuilding building);
	
	/**
	 * @param building
	 * @return
	 */
	int edit(ShBuilding building);
	
	/*
	 */
	int delte(Long id);
	
	boolean isRepeat(ShBuilding building);
	
	/**
	 * @param building
	 * @return  获取楼栋下的单元
	 */
	List<ShBuilding> queryBuildingByEntry(ShBuilding building);
	
	/**
	 * @param parentid
	 * @return 获取指定楼栋下的单元 下拉框
	 */
	List<Combobox> getComboboxs(Long parentid);

}
